from django.contrib import admin
from goods import models

@admin.register(models.GoodsChannelGroup)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","name"]

@admin.register(models.GoodsChannel)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","group","category"]

@admin.register(models.GoodsCategory)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","name","parent"]

@admin.register(models.Brand)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","name","logo"]

@admin.register(models.SPU)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","name","brand"]

@admin.register(models.SKU)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","name","caption","spu"]

@admin.register(models.SKUImage)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","sku","image"]

@admin.register(models.SPUSpecification)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","spu","name"]

@admin.register(models.SpecificationOption)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","spec","value"]

@admin.register(models.SKUSpecification)
class ContentCategoryAdmin(admin.ModelAdmin):
    list_display = ["id","sku","spec","option"]
